package com.tiger.utils;

import java.text.MessageFormat;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

public class LangUtils {
	private static final ResourceBundle BUNDLE = PropertyResourceBundle.getBundle("messages");
	public static String get(String key, Object... arguments) {
		try {
			return MessageFormat.format(BUNDLE.getString(key), arguments);
		} catch (Exception e) {
			return key;
		}
	}
}
